﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using BPM.Entity;

namespace BPM.Service.Mappings
{
	internal class OperationLogConfiguration : EntityConfiguration<OperationLog>
	{
		public OperationLogConfiguration()
		{
			this.HasRequired(o => o.User)
				.WithMany()
				.HasConstraint((o, u) => o.UserId == u.Id)
				.WillCascadeOnDelete(true);
		}
	}
}